<?php


class BrowserDetectorFilter extends sfFilter
{
    /**
   * Execute filter
   *
   * @param sfFilterChain $filterChain
   */
    public function execute($filterChain)
    {
        // Execute this filter only once
        if ($this->isFirstCall())
        {
            $browser_detector = new BrowserDetector();
            $browser_detector->run();
        }

        // Execute next filter
        $filterChain->execute();
    }


}